package cn.uniqueinfo.dp.service.impl;

import cn.uniqueinfo.dp.mapper.PermissionMapper;
import cn.uniqueinfo.dp.service.IPermissionService;
import cn.uniqueinfo.dp.service.base.BaseServiceImpl;
import cn.uniqueinfo.dp.vo.PermissionVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author:朱元勋
 * @mail:395910063@qq.com
 * @date:2019-01-23 14:48:18
 * @description: 业务单据权限点
 */
@Service
public class PermissionServiceImpl extends BaseServiceImpl<PermissionVO>
        implements IPermissionService {
    private PermissionMapper mapper;

    public PermissionServiceImpl(PermissionMapper mapper) {
        this.mapper = mapper;
        this.baseMapper = mapper;
    }

    @Override
    public List<PermissionVO> findByFormName(String formName) {
        return this.mapper.findByFormName(formName);
    }

    @Override
    public List<PermissionVO> findeByRole(Long rid, String formName) {
        return this.mapper.findeByRole(rid, formName);
    }
}
